package com.recyclerviewdemo;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

/**
 * Created by nell on 2018/6/12.
 */

/**
 * Created by apple on 2018/6/10.
 */

public class HomeAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
    public HomeAdapter(int layoutResId, @Nullable List<String> list) {
        super(layoutResId, list);
    }


    @Override
    protected void convert(BaseViewHolder viewHolder, String item) {
        viewHolder.setText(R.id.id_num, item)
                .addOnClickListener(R.id.id_num);
    }
}
